/*
 * @Author: zhangzhanyan 
 * @Date: 2021-07-18 19:15:38 
 * @Last Modified by: zhangzhnayan
 * @Last Modified time: 2021-07-21 23:19:59
 */

import "./index.scss"
import HomeHeader from "@/components/Home/Header"
import MainDl from "@/components/Home/mainDl"
import Tool from "@/components/Home/Tool"
import List from "../../components/Home/List"
import Footer from "../../components/Home/footer"
import {history} from "umi"
import {} from "umi"


export default function Home(){

    function add(){

        console.log(123)
        if(localStorage.getItem("token")){
            return ;
        }else{
            history.push("/login")
        }
    }
    return (
        <div className="Home-warp">
            <HomeHeader/>
            <MainDl></MainDl>
            <Tool/>
            <List/>
            <Footer/>
            <div onClick={()=>add()} className="news"></div>
        </div>
    )
}
